//
//  LWForgotPwdCtrl.m
//  laowu
//
//  Created by 曹秀云 on 15/5/1.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "LWForgotPwdCtrl.h"
#import "LWSecCodeCtrl.h"

@interface LWForgotPwdCtrl ()

@end

@implementation LWForgotPwdCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    [self  setTitle:@"找回密码"];
    [self.ICCardTextFiled setCornerRadius:0 borderWidth:1 borderColor:HEXColor(@"#dfdfdf")];
    [self.RegModileNumTextFiled setCornerRadius:0 borderWidth:1 borderColor:HEXColor(@"#dfdfdf")];
    
}

- (IBAction)GetSecCodeBtnClick:(id)sender {
    if (ISBLANK(self.ICCardTextFiled.text)) {
     [DialogUtils showTipsWithView:nil String:@"身份证号码为空！"];
        return;
    }
    if (ISBLANK(self.RegModileNumTextFiled.text)) {
        [DialogUtils showTipsWithView:nil String:@"注册手机号为空！"];
        return;
    }
    [MeDataTool getVeriCodeWithPhone:self.RegModileNumTextFiled.text success:^(BaseResponse *result) {
        if (result.isSucc) {
            [DialogUtils showTipsWithView:nil String:@"获取验证码成功！"];
            [self.navigationController pushViewController:[[LWSecCodeCtrl alloc] init] animated:YES];
        }else{
            [DialogUtils showTipsWithView:nil String:result.msg];
        }
    } failure:^(NSError *error) {
        [DialogUtils showTipsWithView:nil String:@"获取验证码失败！"];
    }];
}
@end
